package Lambda_BilibilI;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@EqualsAndHashCode
public class Book {

    private Long id;
    private String name;
    private String category;
    private Integer score;
    private String intro;



    public Book(Long id, String name, String category, Integer score, String intro) {
        this.id = id;
        this.name = name;
        this.category = category;
        this.score = score;
        this.intro = intro;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", score=" + score +
                ", intro='" + intro + '\'' +
                '}';
    }
}
